#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "raytracer.h"

class QProgressBar;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
    public:
        explicit MainWindow(QWidget *parent = 0);
        ~MainWindow();

    private slots:
        void on_action250x250_triggered();
        void on_action500x500_triggered();
        void on_action640x480_triggered();
        void on_action800x600_triggered();

        void on_actionStartRayTracing_triggered();

    public slots:

        void showProgess(int percentageCompleted);
        void renderingFinished(QImage *image);

    private:

        Ui::MainWindow *ui;
        Raytracer *tracer;

        QProgressBar *progressBar;

        void setImageResolution(int width, int height);
};

#endif // MAINWINDOW_H
